package com.xzq.bugstack.util;

import com.xzq.bugstack.domain.MsgBody;

/**
 * @Author xzq
 * @Description //TODO
 * @Date 2021/11/20 13:10
 * @Version 1.0.0
 **/
public class MsgUtil {

    /**
     * 构建protobuf消息体
     */
    public static MsgBody buildMsg(String channelId, String msgInfo) {
        MsgBody.Builder msg = MsgBody.newBuilder();
        msg.setChannelId(channelId);
        msg.setMsgInfo(msgInfo);
        return msg.build();
    }
}
